package com.fang.config.event;

import lombok.Data;
import org.springframework.context.ApplicationEvent;

/**
 * 自定义事件
 * @author Fang Ruichuan
 * @date 2022-09-13 14:18
 */
@Data
public class OrderProductEvent extends ApplicationEvent {

    // 该类型事件携带的信息
    private String orderId;

    public OrderProductEvent(Object source, String orderId) {
        super(source);
        this.orderId = orderId;
    }
}
